const stop_clicks = {
	subimtState: true,
	stop() {
		this.subimtState = false
	},
	start() {
		this.subimtState = true;
	},
	noMultipleClicks(methods) {
		const that = this;
		if (that.subimtState) {
			that.stop()
			methods();
			setTimeout(function() {
				that.start()
			}, 2000)
		} else {
			console.log("请稍后点击")
		}
	}
}

export default stop_clicks;